package smcms.service.order.service;

import org.springframework.web.multipart.MultipartFile;
import smcms.commons.api.entity.result.CommonsResult;
import smcms.service.order.entity.OrderExportReq;
import smcms.service.order.entity.OrderReq;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface OrderService {
    CommonsResult insertOrder(OrderReq req);

    CommonsResult updateOrderInfo(OrderReq req);

    CommonsResult queryOrderList(OrderReq req);

    CommonsResult deleteOrderByIds(String req);

    CommonsResult exportOrderList(OrderExportReq req, HttpServletResponse response);

    void importTemplate(OrderReq req, HttpServletResponse response);

    CommonsResult importOrderList(MultipartFile file, HttpServletRequest request, HttpServletResponse response);
}
